﻿<%@ Page Title="" Language="C#" MasterPageFile="MasterPageSemMenu.master" AutoEventWireup="true" CodeFile="esqueceuSenha.aspx.cs" Inherits="Camara_empresa_EsqueceuSenha" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

<script src="../../Scripts/jquery-1.7.2.min.js" type="text/javascript"></script>
<script src="../../Scripts/jquery.maskedinput-1.1.4.pack.js" type="text/javascript"></script>
<script type="text/javascript">
    $(document).ready(function () {
        $("#ctl00_ContentPlaceHolder1_txtCNPJ").mask("99.999.999/9999-99");
    });

</script>



<style type="text/css">

    .acesso
    {
        font: 26px tahoma, arial;
    }
    input[type=text], input[type=password]
    {
        padding: 5px;
        font: 24px tahoma, arial;
    }
    
    #tabela 
    {
        margin-top: 20px;
        width: 400px; 
        position: absolute;
        left: 50%;
        margin-left: -200px;
    }   
    
</style>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <h1>Solicitar senha de acesso</h1>
    <table align="center" id="tabela">
        <tr>
            <td class="acesso">
                CNPJ:</td>
            <td>
                <asp:TextBox ID="txtCNPJ" runat="server" MaxLength="14" Width="220px"></asp:TextBox>
            </td>
        </tr>
        <tr><td colspan="2" style="height:8px;"></td></tr>
        <tr>
            <td class="acesso">
                Email:</td>
            <td>
                <asp:TextBox ID="txtEmail" runat="server" Width="300px"></asp:TextBox></asp:TextBox>
            </td>
        </tr>
        <tr><td colspan="2" style="height:8px;"></td></tr>
        <tr>
            <td colspan="2">
                <asp:Label ID="lblMensagem" runat="server" EnableViewState="False" 
                    Visible="False"></asp:Label>
                <asp:RequiredFieldValidator ID="RV1" runat="server" ControlToValidate="txtCNPJ" 
                    Display="None" ErrorMessage="Informe o CNPJ"></asp:RequiredFieldValidator>
                <asp:RequiredFieldValidator ID="RV2" runat="server" 
                    ControlToValidate="txtEmail" Display="None" ErrorMessage="Informe o email"></asp:RequiredFieldValidator>
                <asp:CompareValidator ID="CV1" runat="server" ControlToValidate="txtCNPJ" 
                    Display="None" 
                    ErrorMessage="O CNPJ deve ser preenchido apenas com números, sem sinal" 
                    Operator="DataTypeCheck" Type="Double"></asp:CompareValidator>
                <asp:RegularExpressionValidator ID="REV1" runat="server" 
                    ControlToValidate="txtEmail" Display="None" ErrorMessage="Email inválido" 
                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                <asp:ValidationSummary ID="VS1" runat="server" ShowMessageBox="True" 
                    ShowSummary="False" />
            </td>
        </tr>
        <tr>
            <td colspan="2" align="center">
                <asp:ImageButton ID="btnSolicitarSenha" runat="server" 
                    ImageUrl="../figuras/bSolicitar.gif" 
                    onclick="btnSolicitarSenha_Click" />
            &nbsp;&nbsp;&nbsp;<asp:ImageButton ID="btnVoltar" runat="server" 
                    ImageUrl="../figuras/bVoltar.gif" CausesValidation="False" 
                    PostBackUrl="default.aspx" />
            </td>
        </tr>
    </table>

</asp:Content>

